﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OOP;
using DAL;
using OPP;
using System.Data;

namespace BUS
{
   public class Customer_Bus
    {
        DataAccess da = new DataAccess();
        DataProvince pro = new DataProvince();
        public List<ARCUSTOMER> LoadCustomer()
        {
            return da.LoadCustomer();
        }
        public DataTable LoadProvince()
        {
            return pro.LoadProvince();
        }
        public DataTable LoadDist(int ProvinceId)
        {
            return pro.LoadDist(ProvinceId);
        }
        public List<string> LoadTownCode(string towncode)
        {
            return da.LoadTownCode(towncode);
        }
        public List<string> LoadTownCode()
        {
            return da.LoadTownCode();
        }
        public int UpdateCutomer(ARCUSTOMER arcust)
        {
            return da.UpdateCustomer(arcust);
        }
        public int DeleteCutomer(string id)
        {
            return da.DeleteCustomer(id);
        }
        public int InsertCutomer(ARCUSTOMER arcust)
        {
            return da.InsertCustomer(arcust);
        }
    }
}
